package com.junjun.ssm.dao;

import com.junjun.ssm.entity.GradeEntity;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

public interface GradeDao extends CrudRepository<GradeEntity,String> {
    @Query("from GradeEntity g where g.userGrade=?1")
    GradeEntity findByGradeName(String gradeName);






}
